﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.MultiEditingInPathEditor.CCCoSetLocationsParametersCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.Resources;
using System.Windows.Forms;
using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands.MultiEditingInPathEditor;

public class CCCoSetLocationsParametersCmd : TxButtonCommand
{
  private CCApSetLocationsParametersEnabler m_enabler;

  public CCCoSetLocationsParametersCmd()
  {
    this.m_enabler = new CCApSetLocationsParametersEnabler();
  }

  public virtual void Execute(object cmdParams)
  {
    try
    {
      Cursor current = Cursor.Current;
      Cursor.Current = Cursors.WaitCursor;
      ((Control) new CCUISetLocationsParametersDialog()).Show();
      Cursor.Current = current;
    }
    catch (Exception ex)
    {
      int num = (int) TxMessageBox.Show(this.GetResourceManager().GetString("CMD_FAILURE_MSG") + ex.Message, base.Name, MessageBoxButtons.OK, MessageBoxIcon.Hand);
    }
  }

  public virtual string Bitmap => this.GetResourceManager().GetString("CMD_BITMAP");

  public virtual string Category => this.GetResourceManager().GetString("CMD_CATEGORY");

  public virtual ITxCommandEnabler CommandEnabler => (ITxCommandEnabler) this.m_enabler;

  public virtual string Description => this.GetResourceManager().GetString("CMD_DESCRIPTION");

  public virtual string Name => this.GetResourceManager().GetString("CMD_NAME");

  public virtual string Tooltip => this.GetResourceManager().GetString("CMD_TOOLTIP");

  public virtual bool Licensed => TxCommandLicenser.SetLocationsParametersLicense;

  private ResourceManager GetResourceManager()
  {
    return new ResourceManager("DnProcessSimulateCommands.MultiEditingInPathEditor.StringTable", ((object) this).GetType().Assembly);
  }
}
